You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > Statistics.MeanG Method
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.MeanG Method

Geometric mean.

Syntax
C#
Visual Basic
public static double MeanG([In] TVec Data);
Parameters 
Description 
[In] TVec Data 
Data. An exception is raised if Data is complex. 

the geometric mean of given values.

Calculate the geometric mean for given values.

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Vector a = new Vector(0); a.SetIt(false, new double[] {2,0.1,3,4}); double MG = Statistics.MeanG(a); // MG = 1.24466595457696 } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!